.kdqr {
  width: 100vw;
  height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* 顶部导航 */
.kdqr-top {
  width: 100%;
  height: 40px;
  background-color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.kdqr-top-left {
  width: 20px;
  height: 20px;
  margin-left: 15px;
  cursor: pointer;
}

.kdqr-top-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
  font-size: 17px;
  font-weight: 500;
  color: #333;
}

/* 内容区域 */
.kdqr-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

/* 通用区域样式 */
.info-section,
.reason-section,
.items-section {
  background-color: #fff;
  border-radius: 0;
  margin-bottom: 12px;
  padding: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

/* 申请信息 */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8f8f8;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item.clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.info-item.clickable:hover {
  background-color: #f8f8f8;
  margin: 0 -16px;
  padding: 12px 16px;
  border-radius: 4px;
}

.info-label {
  font-size: 14px;
  color: #666;
}

.info-value {
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow {
  color: #999;
  font-size: 12px;
}

/* 申请原因 */
.reason-input-container {
  position: relative;
}

.reason-input {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.reason-input:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.char-count {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 12px;
  color: #999;
  background-color: #fff;
  padding: 0 4px;
}

/* 申请项目 */
.items-list {
  margin-bottom: 16px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-text {
  font-size: 16px;
  color: #999;
  margin-bottom: 20px;
}

.back-btn {
  background-color: #1890ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background-color: #40a9ff;
}

.item-card {
  background-color: #fff;
  border-radius: 0;
  padding: 16px;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid #f0f0f0;
}

.item-card:last-child {
  border-bottom: none;
}

.item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.item-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
  margin-right: 60px;
}

.item-name {
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
  word-break: break-all;
}

.item-quantity {
  font-size: 13px;
  color: #666;
}

.item-price {
  font-size: 15px;
  font-weight: 600;
  color: #fa8c16;
  position: absolute;
  top: 0;
  right: 0;
}

.item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.item-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid;
  background-color: rgba(255, 255, 255, 0.8);
}

.total-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  margin-top: 8px;
}

.total-label {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.total-price {
  font-size: 16px;
  font-weight: 600;
  color: #fa8c16;
}

/* 确认按钮区域 */
.confirm-section {
  padding: 12px 16px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
}

.confirm-btn {
  width: 100%;
  height: 44px;
  background-color: #1890ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-btn:hover:not(:disabled) {
  background-color: #40a9ff;
}

.confirm-btn:active:not(:disabled) {
  background-color: #096dd9;
}

.confirm-btn:disabled {
  background-color: #d9d9d9;
  color: #999;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .kdqr-content {
    padding: 12px;
  }
  
  .info-section,
  .reason-section,
  .items-section {
    padding: 12px;
  }
  
  .item-card {
    padding: 12px;
  }
}
